#ifndef CAMERA_PANEL_H
#define CAMERA_PANEL_H

#include <QWidget>
#include <QtGui>
#include "src/camera.h"


class CameraPanel : public QWidget {
	Q_OBJECT


    signals:
        void update();


    public:
        CameraPanel(QWidget * = 0, Camera * = 0);
        ~CameraPanel();

        void setCamera(Camera *_c);

    private slots:
        void updateCamera();
        void changeEyeX(double);
        void changeEyeY(double);
        void changeEyeZ(double);
        void changeLookAtX(double);
        void changeLookAtY(double);
        void changeLookAtZ(double);
        void changeUpX(double);
        void changeUpY(double);
        void changeUpZ(double);
        void changeM(int);
        void changeN(int);
        void changeF(double);

    private:
        double eyeX, eyeY, eyeZ, lookAtX, lookAtY, lookAtZ, upX, upY, upZ, f;
        int m, n;
        Camera *camera;
};

#endif

